package com.qst.survey.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qst.survey.entity.QuestionAnswer;
import org.apache.ibatis.annotations.Select;

/**
 * @Date: 2021/3/18 20:21
 * @Description: 问题回复映射类
 */
public interface QuestionAnswerMapper extends BaseMapper<QuestionAnswer> {
    @Select("update question_answer set selected = question_answer.selected + 1 where id = #{id}")
    public void chooseAnswer(Integer id);
}
